/* -----------------
* brief
* 1. this is code gen by tools
* 2. array like [a,b,c] after each field, define the ui html tag in view,
		a for title,
		b for show or not ,
		c for element html tag , currently support : check、radio、select、input、textarea、upload
* 3. XXX
*/
//使用方法：在工程root目录下，执行go generate ./modules/appmanager/models
//go:generate legogen -type=AppProductSpec -kv=ModuleName=appmanager,PrjName=saas_sys_base -dirconf=../../.. ./AppProductSpec.go
package appmanager

import "github.com/mjiulee/lego"

func init() {
	lego.AddBeanToSynList(new(AppProductSpec))
}

/* table: "tb_app_product_spec"
 * -----------------
 */
type AppProductSpec struct {
	Id    int64  `xorm:"pk" json:",string"`               // ["id","hide","hidden"]
	IfDel int    `xorm:"default 0"`        // ["deleted","hide","hidden"]
	Cdate string `xorm:"DateTime created"` // ["create","show","datetime"]
	Udate string `xorm:"DateTime updated"` // ["update","show","datetime"]
	// add your custom field here

	SpecName string `xorm:"varchar(255)  "` // ["规格名称","show","input"]

	SellPrice float64 `xorm:"double" json:",string"` // ["售价","show","input"]

	Stock int `xorm:"default 0"` // ["库存","show","input"]

	ProductId int64 `xorm:"" json:",string"` // ["所属商品","show","input"]

	BarCode string `xorm:"varchar(255)  "` // ["条码","show","input"]

	//CheckMode    int       `xorm:"default 0"` // ["模式","hide","hidden"] //意思是按照时间计费还是次数计费
	Months int `xorm:""` // ["月数","show","input"]
	//UseTimes     int       `xorm:"default 0"` // ["剩余次数","show","input"]
}
